/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  padding: 20px;
  min-width: 400px;
  max-width: 500px;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
}

/* 书签管理链接卡片 */
.manager-link-card {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #4DA2CB 0%, #67B26F 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 183, 255, 0.2);
}

.manager-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 183, 255, 0.3);
}

.card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  flex: 1;
  color: white;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.card-description {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.card-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.manager-link-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* 书签表单 */
.bookmark-form {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#add-button {
  width: 100%;
  padding: 12px;
  background: #06948aee;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#add-button:hover {
  background: #0fc2ad;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* 最近标签样式 */
.recent-tags {
  margin-top: 16px;
  margin-bottom: 16px;
}

.recent-tags h4 {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.recent-tags-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-tag-btn {
  padding: 4px 10px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  font-size: 12px;
  color: #2e7d32;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recent-tag-btn:hover {
  background: #c8e6c9;
  border-color: #a5d6a7;
  color: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15);
}

.no-recent-tags {
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin: 0;
}

/* 最近添加的书签 */
.recent-bookmarks {
  max-height: 300px;
  overflow-y: auto;
}

#recent-bookmarks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-bookmark-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.recent-bookmark-item:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.recent-bookmark-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  text-decoration: none;
  display: block;
}

.recent-bookmark-title:hover {
  text-decoration: underline;
}

.recent-bookmark-url {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  display: block;
  word-break: break-all;
}

.recent-bookmark-url:hover {
  text-decoration: underline;
}

.no-bookmarks {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

/* 滚动条样式 */
.recent-bookmarks::-webkit-scrollbar {
  width: 6px;
}

.recent-bookmarks::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.recent-bookmarks::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.recent-bookmarks::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}